package com.sbtr.business.system.entity;

import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;


/**
 * 帮助说明基本信息字段列表 实体类
 *
 * @author dgl
 * @since 2023-10-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_help_info")
@ApiModel(value="HelpInfo对象")
public class HelpInfo extends Model<HelpInfo> {

    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "帮助说明编号")
    private String helpCode;

    @ApiModelProperty(value = "一级菜单名称")
    private String firstMenu;

    @ApiModelProperty(value = "二级菜单名称")
    private String secondaryMenu;

    @ApiModelProperty(value = "所属功能")
    private String functionName;

    @ApiModelProperty(value = "所属操作")
    private String operateName;

    @ApiModelProperty(value = "功能说明")
    private String funDescription;

    @ApiModelProperty(value = "输入端口")
    private String inPort;

    @ApiModelProperty(value = "输出端口")
    private String outPort;

    @ApiModelProperty(value = "创建人")
    private String creater;

    @ApiModelProperty(value = "编辑时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 后台传数据到前台
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //前台传数据到后台
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remarks;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
